package com.ostrich.note.ui.note.viewmodel;


import com.ostrich.note.entity.BaseResponseEntity;
import com.ostrich.note.ui.note.entity.TypeEntity;
import com.ostrich.note.ui.note.repository.NoteRepository;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

public class NoteAddViewModel extends ViewModel {
    private NoteRepository mNoteRepository = new NoteRepository();
    //添加笔记
    public LiveData<BaseResponseEntity> notepadDetailInsert(String thumb, String title , long create_time, String content, int scrawl, int type_id){
        return mNoteRepository.notepadDetailInsert(thumb, title, create_time, content, scrawl, type_id);
    }
    //分类列表
    public LiveData<BaseResponseEntity<TypeEntity>> notepadClassifiedData(){
        return mNoteRepository.notepadClassifiedData();
    }
}
